using System;

namespace NUnitForVSTS.NUnitTest
{
    /// <summary>
    /// Helper class for validating the parameters.
    /// </summary>
	public static class Check
	{
        /// <summary>
        /// Validates that the parameter is not null.
        /// </summary>
        /// <param name="value">The value that shouldnt be null</param>
        /// <param name="parameter">The name parameter</param>
        /// <remarks>Throws ArgumentNull exception when the parameter is null</remarks>
		public static void NotNull(object value, string parameter)
		{
            if (value == null)
            {
                throw new ArgumentNullException(parameter);
            }
		}
	}
}
